package com.ruoyi.order.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户订单业务对象 t_user_order
 *
 * @author zhi
 * @date 2024-03-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserOrderBo extends BaseEntity {

    /**
     * 主键Id
     */
    @NotNull(message = "主键Id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mobile;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 订单号
     */
//    @NotBlank(message = "订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderId;

    /**
     * 订单描述
     */
//    @NotBlank(message = "订单描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 套餐
     */
//    @NotBlank(message = "套餐不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderPackage;

    /**
     * 金额
     */
//    @NotNull(message = "金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 货币种类
     */
    @NotBlank(message = "货币种类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currency;

    /**
     * 支付订单id
     */
//    @NotBlank(message = "支付订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payId;

    /**
     * 交易流水号
     */
//    @NotBlank(message = "交易流水号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transNo;

    /**
     * 支付方式，0在线支付,1货到付款
     */
    @NotBlank(message = "支付方式，0在线支付,1货到付款不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payType;

    /**
     * 支付者账号
     */
//    @NotBlank(message = "支付者账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payerEmail;

    /**
     * 支付时间
     */
//    @NotNull(message = "支付时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date payTime;

    /**
     * 订单状态，0未支付，1支付 2 取消 3超时
     */
//    @NotBlank(message = "订单状态，0未支付，1支付 2 取消 3超时不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderStatus;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
